package cn.edu.just.firstjavaapp.l6;

public class Point {
    int x = 0;

    static String name;
    Point(){

    }

    static {//静态初始化块
        name = initializeVar();

    }
    {
        x=sumOf100();
    }

    static String initializeVar(){
        String s ="12";
        s +="abc";
        s +="123";
        return s;
    }

    final int sumOf100(){
        int sum=0;
        for(int i=0;i<100;i++)
            sum+=i;
        return sum;
    }
}
